<?php
namespace app\admin\validate;

use think\Validate;

class MemberAddr extends Validate
{
    protected $rule = [
	    ['country','require','请选择国家'],
	    ['province','require','请输入省份'],
	    ['city','require','请输入城市'],
	    ['addr1','require','至少要有一个地址'],
    ];

     protected $scene = [
        'add'  =>  ['country','province','city','addr1'],
        'edit'  =>  ['country','province','city','addr1'],
    ]; 
     
}